<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="./../template/template.xhtml">
	<ui:define name="content">
		<h:form>
			<div class="FORM_HEADER">View Destination</div>
			<h:panelGrid columns="3" styleClass="APPLICATION_CONTENT">
				<p:outputLabel for="departmentId" value="Department:" />
				<h:outputText id="departmentId"
					value="#{jobController.jobDTO.departmentId}" />
				<p:message for="departmentId" />

				<h:outputText value="" />
				<h:inputHidden id="id" value="#{jobController.jobDTO.id}" />
				<p:message for="id" />

				<p:outputLabel for="name" value="Name: " />
				<h:outputText id="name" value="#{jobController.jobDTO.name}" />
				<p:message for="name" />
			</h:panelGrid>
			<h:panelGroup>
				<p:commandButton value="Print" action="#{jobController.save}">
					<f:param name="jobId" value="#{job.id}" />
				</p:commandButton>
				<p:commandButton value="Delete" action="#{jobController.delete}">
					<f:param name="jobId" value="#{job.id}" />
				</p:commandButton>
			</h:panelGroup>
		</h:form>
	</ui:define>
</ui:composition>
</html>